const initwidth=200
export default function width(width=initwidth,action){
  switch (action.type) {
    case "flag1":
      return width=200;
    case "flag2":
      return width=100;
    default:
      return width;
  }
}